import pydot
import os
print("Current Working Directory:", os.getcwd())

# 读取 .dot 文件
(graph,) = pydot.graph_from_dot_file("class_diagram.dot")


# 保存为 PNG 图片
graph.write_png("class_diagram.png")
